package day6;

import java.util.Scanner;

public class ScannerThreeMax {
    public static void main(String[] args) {

        Scanner num = new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int a = num.nextInt();
        System.out.println("请输入第二个数字");
        int b = num.nextInt();
        int medium = a > b ? a : b;
        System.out.println("请输入第三个数字");
        int c = num.nextInt();
        int max = c > medium ? c : medium;
        System.out.println("三个数字中最大的数字是" + max);
    }
}
